import request from "@/utils/request";

export function updateApplication(data) {
  return request({
    url: '/fm/pa/edit',
    method: 'put',
    data: data
  })
}


export function addApplication(data) {
  return request({
    url: '/fm/pa/add',
    method: 'post',
    data: data
  })
}


export function delApplication(id) {
  return request({
    url: '/fm/pa/del/' + id,
    method: 'delete'
  })
}

export function getApplication(id) {
  return request({
    url: '/fm/pa/get/' + id,
    method: 'get'
  })
}

export function listApplication(query) {
  return request({
    url: '/fm/pa/list',
    method: 'get',
    params: query
  })
}
